<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>OpenLayers v8.2.0 API - Class: Cluster</title>
    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
        crossorigin="anonymous"></script>
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/fontawesome.min.css"
        crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/solid.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/brands.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="styles/prettify-tomorrow.css">
    <link rel="stylesheet" type="text/css" href="styles/jaguar.css">
    <link rel="stylesheet" type="text/css" href="styles/carbon.css">
    <link rel="stylesheet" type="text/css" href="/theme/ol.css">
    <link rel="stylesheet" type="text/css" href="/theme/site.css">
</head>

<body>
    <header class="navbar navbar-expand-sm navbar-dark mb-3 px-3 py-0 fixed-top" role="navigation">
        <a class="navbar-brand" href="/"><img src="/theme/img/logo-dark.svg" width="70" height="70"
                alt="">&nbsp;OpenLayers</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#olmenu"
            aria-controls="olmenu" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <!-- menu items that get hidden below 768px width -->
        <nav class="collapse navbar-collapse" id="olmenu">
            <ul class="nav navbar-nav ms-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="docdropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Docs</a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="docdropdown">
                        <a class="dropdown-item" href="/doc/">Docs</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="/doc/quickstart.html"><i
                                class="fa fa-check fa-fw me-2 fa-lg"></i>快速入门</a>
                        <a class="dropdown-item" href="/doc/faq.html"><i
                                class="fa fa-question fa-fw me-2 fa-lg"></i>FAQ</a>
                        <a class="dropdown-item" href="/doc/tutorials/"><i
                                class="fa fa-book fa-fw me-2 fa-lg"></i>Tutorials</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="https://stackoverflow.com/questions/tagged/openlayers"><i
                                class="fab fa-stack-overflow fa-fw me-2"></i>Ask a Question</a>
                    </div>
                </li>
                <li class="nav-item"><a class="nav-link" href="/en/latest/examples/">Examples</a></li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="apidropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <i class="fa fa-sitemap me-1"></i>API
                    </a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="apidropdown">
                        <a class="dropdown-item" href="/en/latest/apidoc/"><i
                                class="fa fa-sitemap fa-fw me-2 fa-lg"></i>v8.2.0
                            (latest)</a </div>
                </li>
            </ul>
        </nav>
    </header>

    <div class="container-fluid">
        <div id="wrap" class="row">
            <div class="navigation col-md-4 col-lg-3">
                <div class="search-wrapper">
                    <div class="search">
                        <input id="search" type="text" autocomplete="off" class="form-control input-sm"
                            placeholder="Search Documentation">
                    </div>
                </div>
                <div class="navigation-list-wrapper">
                    <ul class="navigation-list search-empty">
                        <li class="item item-class toggle-manual toggle-manual-show"
                            data-longname="module:ol/source/Cluster~Cluster" data-name="ol/source/cluster">
                            <span class="title toggle">
                                <span class="fa fa-chevron-right me-2 mt-1"></span>
                                <span><a href="module-ol_source_Cluster-Cluster.html">ol​/source​/Cluster</a></span>
                            </span>
                            <div class="member-list" data-type="methods">
                                <span class="subtitle">Methods</span>
                                <ul>
                                    <li data-name="addfeature"><a
                                            href="module-ol_source_Cluster-Cluster.html#addFeature">addFeature</a>
                                    <li data-name="addfeatures"><a
                                            href="module-ol_source_Cluster-Cluster.html#addFeatures">addFeatures</a>
                                    <li data-name="changed"><a
                                            href="module-ol_source_Cluster-Cluster.html#changed">changed</a>
                                    <li data-name="clear"><a
                                            href="module-ol_source_Cluster-Cluster.html#clear">clear</a>
                                    <li data-name="dispatchevent"><a
                                            href="module-ol_source_Cluster-Cluster.html#dispatchEvent">dispatchEvent</a>
                                    <li data-name="foreachfeature"><a
                                            href="module-ol_source_Cluster-Cluster.html#forEachFeature">forEachFeature</a>
                                    <li data-name="foreachfeatureinextent"><a
                                            href="module-ol_source_Cluster-Cluster.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
                                    <li data-name="foreachfeatureintersectingextent"><a
                                            href="module-ol_source_Cluster-Cluster.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
                                    <li data-name="get"><a href="module-ol_source_Cluster-Cluster.html#get">get</a>
                                    <li data-name="getattributions"><a
                                            href="module-ol_source_Cluster-Cluster.html#getAttributions">getAttributions</a>
                                    <li data-name="getattributionscollapsible"><a
                                            href="module-ol_source_Cluster-Cluster.html#getAttributionsCollapsible">getAttributionsCollapsible</a>
                                    <li data-name="getclosestfeaturetocoordinate"><a
                                            href="module-ol_source_Cluster-Cluster.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
                                    <li data-name="getdistance"><a
                                            href="module-ol_source_Cluster-Cluster.html#getDistance">getDistance</a>
                                    <li data-name="getextent"><a
                                            href="module-ol_source_Cluster-Cluster.html#getExtent">getExtent</a>
                                    <li data-name="getfeaturebyid"><a
                                            href="module-ol_source_Cluster-Cluster.html#getFeatureById">getFeatureById</a>
                                    <li data-name="getfeatures"><a
                                            href="module-ol_source_Cluster-Cluster.html#getFeatures">getFeatures</a>
                                    <li data-name="getfeaturesatcoordinate"><a
                                            href="module-ol_source_Cluster-Cluster.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
                                    <li data-name="getfeaturescollection"><a
                                            href="module-ol_source_Cluster-Cluster.html#getFeaturesCollection">getFeaturesCollection</a>
                                    <li data-name="getfeaturesinextent"><a
                                            href="module-ol_source_Cluster-Cluster.html#getFeaturesInExtent">getFeaturesInExtent</a>
                                    <li data-name="getformat"><a
                                            href="module-ol_source_Cluster-Cluster.html#getFormat">getFormat</a>
                                    <li data-name="getkeys"><a
                                            href="module-ol_source_Cluster-Cluster.html#getKeys">getKeys</a>
                                    <li data-name="getmindistance"><a
                                            href="module-ol_source_Cluster-Cluster.html#getMinDistance">getMinDistance</a>
                                    <li data-name="getprojection"><a
                                            href="module-ol_source_Cluster-Cluster.html#getProjection">getProjection</a>
                                    <li data-name="getproperties"><a
                                            href="module-ol_source_Cluster-Cluster.html#getProperties">getProperties</a>
                                    <li data-name="getrevision"><a
                                            href="module-ol_source_Cluster-Cluster.html#getRevision">getRevision</a>
                                    <li data-name="getsource"><a
                                            href="module-ol_source_Cluster-Cluster.html#getSource">getSource</a>
                                    <li data-name="getstate"><a
                                            href="module-ol_source_Cluster-Cluster.html#getState">getState</a>
                                    <li data-name="geturl"><a
                                            href="module-ol_source_Cluster-Cluster.html#getUrl">getUrl</a>
                                    <li data-name="hasfeature"><a
                                            href="module-ol_source_Cluster-Cluster.html#hasFeature">hasFeature</a>
                                    <li data-name="on"><a href="module-ol_source_Cluster-Cluster.html#on">on</a>
                                    <li data-name="once"><a href="module-ol_source_Cluster-Cluster.html#once">once</a>
                                    <li data-name="removefeature"><a
                                            href="module-ol_source_Cluster-Cluster.html#removeFeature">removeFeature</a>
                                    <li data-name="removeloadedextent"><a
                                            href="module-ol_source_Cluster-Cluster.html#removeLoadedExtent">removeLoadedExtent</a>
                                    <li data-name="set"><a href="module-ol_source_Cluster-Cluster.html#set">set</a>
                                    <li data-name="setattributions"><a
                                            href="module-ol_source_Cluster-Cluster.html#setAttributions">setAttributions</a>
                                    <li data-name="setdistance"><a
                                            href="module-ol_source_Cluster-Cluster.html#setDistance">setDistance</a>
                                    <li data-name="setloader"><a
                                            href="module-ol_source_Cluster-Cluster.html#setLoader">setLoader</a>
                                    <li data-name="setmindistance"><a
                                            href="module-ol_source_Cluster-Cluster.html#setMinDistance">setMinDistance</a>
                                    <li data-name="setproperties"><a
                                            href="module-ol_source_Cluster-Cluster.html#setProperties">setProperties</a>
                                    <li data-name="setsource"><a
                                            href="module-ol_source_Cluster-Cluster.html#setSource">setSource</a>
                                    <li data-name="seturl"><a
                                            href="module-ol_source_Cluster-Cluster.html#setUrl">setUrl</a>
                                    <li data-name="un"><a href="module-ol_source_Cluster-Cluster.html#un">un</a>
                                    <li data-name="unset"><a
                                            href="module-ol_source_Cluster-Cluster.html#unset">unset</a>
                                </ul>
                            </div>
                            <div class="member-list" data-type="fires">
                                <span class="subtitle">Fires</span>
                                <ul>
                                    <li data-name="addfeature"><a
                                            href="module-ol_source_Vector.VectorSourceEvent.html#event:addfeature">addfeature</a>
                                    <li data-name="change"><a
                                            href="module-ol_events_Event-BaseEvent.html#event:change">change</a>
                                    <li data-name="changefeature"><a
                                            href="module-ol_source_Vector.VectorSourceEvent.html#event:changefeature">changefeature</a>
                                    <li data-name="clear"><a
                                            href="module-ol_source_Vector.VectorSourceEvent.html#event:clear">clear</a>
                                    <li data-name="error"><a
                                            href="module-ol_events_Event-BaseEvent.html#event:error">error</a>
                                    <li data-name="featuresloadend"><a
                                            href="module-ol_source_Vector.VectorSourceEvent.html#event:featuresloadend">featuresloadend</a>
                                    <li data-name="featuresloaderror"><a
                                            href="module-ol_source_Vector.VectorSourceEvent.html#event:featuresloaderror">featuresloaderror</a>
                                    <li data-name="featuresloadstart"><a
                                            href="module-ol_source_Vector.VectorSourceEvent.html#event:featuresloadstart">featuresloadstart</a>
                                    <li data-name="propertychange"><a
                                            href="module-ol_Object.ObjectEvent.html#event:propertychange">propertychange</a>
                                    <li data-name="removefeature"><a
                                            href="module-ol_source_Vector.VectorSourceEvent.html#event:removefeature">removefeature</a>
                                </ul>
                            </div>
                        <li class="loading">Loading …
                    </ul>
                </div>
            </div>

            <div class="main col-md-8 col-lg-9">
                <h1 class="page-title" data-filename="module-ol_source_Cluster-Cluster.html">Class: Cluster</h1>
                <div id="latest-check" class="alert alert-warning alert-dismissible" role="alert" style="display:none">
                    <button id="latest-dismiss" type="button" class="btn-close" data-bs-dismiss="alert"
                        aria-label="Close"></button>
                    This documentation is for OpenLayers v<span id="package-version">8.2.0</span>. The <a
                        id="latest-link" href="#" class="alert-link">latest</a> is v<span id="latest-version"></span>.
                </div>




                <section class="content">

                    <header>
                        <h2 class="my-3">
                            <span class="ancestors"><a
                                    href="module-ol_source_Cluster.html">ol/source/Cluster</a>~</span>Cluster
                        </h2>
                        <br>



                        <pre
                            class="prettyprint source"><code>import Cluster from '<a href="module-ol_source_Cluster.html">ol/source/Cluster</a>.js';</code></pre>


                        <div class="row p-3 ">
                            <!-- <div id="ad" class="col-lg-5 order-2 align-self-center border rounded bg-light ">
                                <script async type="text/javascript"
                                    src="https://cdn.carbonads.com/carbon.js?serve=CE7DV53U&placement=openlayersorg"
                                    id="_carbonads_js"></script>
                            </div> -->

                            <div class="class-description col-lg-7 align-self-center ps-0">
                                <p>用于群集矢量数据的图层源。对于点几何图形，它可以直接使用。对于其他几何图形类型，或者如果并非所有几何图形都应考虑进行聚类，则可以定义自定义的
                                    <code>geometryFunction</code>.
                                </p>
                                <p>如果释放了实例，但没有同时释放基础源，则必须调用<code>setSource(null)</code>以从包装的源中删除侦听器引用。</p>
                            </div>

                        </div>
                    </header>

                    <article>
                        <div class="container-overview">



                            <dl>

                                <dt class="">

                                    <div class="nameContainer">
                                        <div class="anchor" id="Cluster">
                                        </div>
                                        <h4 class="name">
                                            new Cluster<span class="signature">(options)</span>



                                        </h4>

                                        <div class="tag-source">
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js">source/Cluster.js</a>,
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js#L69">line
                                                69</a>
                                        </div>

                                    </div>


                                </dt>
                                <dd class="">













                                    <table class="params">
                                        <thead>
                                            <tr>

                                                <th>Name</th>


                                                <th>Type</th>

                                                <th class="last">Description</th>
                                            </tr>
                                        </thead>

                                        <tbody>


                                            <tr class="">

                                                <td class="name"><code>attributions</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_source_Source.html#~AttributionLike">AttributionLike</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p>归属信息。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>distance</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>



                                                    (defaults to 20)


                                                </td>



                                                <td class="description last">

                                                    <p>以像素为单位的距离，在此距离内的要素将被聚类在一起。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>minDistance</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>



                                                    (defaults to 0)


                                                </td>



                                                <td class="description last">

                                                    <p>集群之间的最小像素距离。将限制在配置的距离内。默认情况下不保证最小距离。此配置可用于避免图标重叠。作为权衡，集群要素的位置将不再是其所有要素的中心。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>geometryFunction</code></td>



                                                <td class="type">


                                                    <span class="param-type">function</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>一个函数，接受一个<a
                                                            href="module-ol_Feature-Feature.html"><code>Feature</code></a>
                                                        作为参数，并返回该要素的聚类计算点作为<a
                                                            href="module-ol_geom_Point-Point.html"><code>Point</code></a>。当要素不应考虑进行聚类时，函数应返回
                                                        <code>null</code>。默认情况下，当基础源仅包含点要素时，可以使用以下函数：
                                                    </p>
                                                    <pre class="prettyprint source lang-js"><code>function(feature) {
  return feature.getGeometry();
}</code></pre>
                                                    <p>请参阅 <a
                                                            href="module-ol_geom_Polygon-Polygon.html#getInteriorPoint"><code>getInteriorPoint</code></a>
                                                        方法，以获取多边形要素的聚类计算点。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>createCluster</code></td>



                                                <td class="type">


                                                    <span class="param-type">function</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>一个函数，接受集群的 <a
                                                            href="module-ol_geom_Point-Point.html"><code>中心点(Point)</code></a>
                                                        和包含在该集群中的一组<a
                                                            href="module-ol_Feature-Feature.html"><code>要素(Feature)</code></a>作为参数。必须返回一个用于渲染的
                                                        <a
                                                            href="module-ol_Feature-Feature.html"><code>要素(Feature)</code></a>
                                                        。默认实现是：
                                                    </p>
                                                    <pre class="prettyprint source lang-js"><code>function(point, features) {
  return new Feature({
    geometry: point,
    features: features
  });
}</code></pre>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>source</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_source_Vector-VectorSource.html">VectorSource</a></span>



                                                    (defaults to null)


                                                </td>



                                                <td class="description last">

                                                    <p>Source.</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>wrapX</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to true)


                                                </td>



                                                <td class="description last">
                                                    <p>是否水平环绕世界。</p>
                                                </td>
                                            </tr>


                                        </tbody>
                                    </table>




                                    <dl class="details">





















                                    </dl>



                                    <h5>Fires:</h5>
                                    <ul>
                                        <li class="">
                                            <code><a href="module-ol_source_Vector.VectorSourceEvent.html#event:addfeature">addfeature</a></code>
                                            (<a
                                                href="module-ol_source_Vector.VectorSourceEvent.html">VectorSourceEvent</a>)
                                            -
                                            当向源中添加要素时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_events_Event-BaseEvent.html#event:change">change</a></code>
                                            (<a href="module-ol_events_Event-BaseEvent.html">BaseEvent</a>)
                                            -通用更改事件。在修订计数器增加时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_source_Vector.VectorSourceEvent.html#event:changefeature">changefeature</a></code>
                                            (<a
                                                href="module-ol_source_Vector.VectorSourceEvent.html">VectorSourceEvent</a>)
                                            -
                                            当要素被更新时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_source_Vector.VectorSourceEvent.html#event:clear">clear</a></code>
                                            (<a
                                                href="module-ol_source_Vector.VectorSourceEvent.html">VectorSourceEvent</a>)
                                            -
                                            当在源上调用 clear 方法时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_events_Event-BaseEvent.html#event:error">error</a></code>
                                            (<a
                                                href="module-ol_events_Event-BaseEvent.html">BaseEvent</a>)-通用错误事件。在发生错误时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_source_Vector.VectorSourceEvent.html#event:featuresloadend">featuresloadend</a></code>
                                            (<a
                                                href="module-ol_source_Vector.VectorSourceEvent.html">VectorSourceEvent</a>)
                                            -
                                            当要素加载完成时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_source_Vector.VectorSourceEvent.html#event:featuresloaderror">featuresloaderror</a></code>
                                            (<a
                                                href="module-ol_source_Vector.VectorSourceEvent.html">VectorSourceEvent</a>)
                                            -
                                            当要素加载失败时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_source_Vector.VectorSourceEvent.html#event:featuresloadstart">featuresloadstart</a></code>
                                            (<a
                                                href="module-ol_source_Vector.VectorSourceEvent.html">VectorSourceEvent</a>)
                                            -
                                            当要素开始加载时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_Object.ObjectEvent.html#event:propertychange">propertychange</a></code>
                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>) - 当属性发生更改时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_source_Vector.VectorSourceEvent.html#event:removefeature">removefeature</a></code>
                                            (<a
                                                href="module-ol_source_Vector.VectorSourceEvent.html">VectorSourceEvent</a>)
                                            - 当从源中移除要素时触发。参考 <a
                                                href="module-ol_source_Vector-VectorSource.html#clear"><code>source.clear()</code></a>
                                        </li>
                                    </ul>











                                </dd>

                            </dl>

                        </div>




                        <h3 class="subsection-title">Extends</h3>

                        <ul>
                            <li><a href="module-ol_source_Vector-VectorSource.html">VectorSource</a></li>
                        </ul>















                        <h3 class="subsection-title">Methods</h3>

                        <dl>


                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="addFeature">
                                    </div>
                                    <h4 class="name">
                                        addFeature<span class="signature">(feature)</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#addFeature">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L334">line
                                            334</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>如果想向源中添加单个要素，您可以使用 <a
                                            href="module-ol_source_Vector-VectorSource.html#addFeature"><code>#addFeature()</code></a>方法。如果您想一次性添加一批要素，请使用<a
                                            href="module-ol_source_Vector-VectorSource.html#addFeatures"><code>#addFeatures()</code></a>
                                        方法。如果具有相同ID的要素已经存在于源中，则不会添加新要素。这种行为的目的是在使用边界框（bbox）或瓦片（tile）加载策略时避免要素重复。请注意，如果使用
                                        <a href="module-ol_Collection-Collection.html"><code>要素集合（Collection）</code></a>
                                        来管理要素，该规则同样适用。也就是说，如果向集合中添加了一个具有重复ID的要素，它将立即从集合中被移除。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>feature</code></td>



                                            <td class="type">


                                                <span class="param-type">FeatureClass</span>




                                            </td>



                                            <td class="description last">

                                                <p>Feature to add.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="addFeatures">
                                    </div>
                                    <h4 class="name">
                                        addFeatures<span class="signature">(features)</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#addFeatures">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L434">line
                                            434</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>向源中添加一批要素</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>features</code></td>



                                            <td class="type">


                                                <span class="param-type">Array.&lt;FeatureClass></span>




                                            </td>



                                            <td class="description last">

                                                <p>Features to add.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="changed">
                                    </div>
                                    <h4 class="name">
                                        changed<span class="signature">()</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#changed">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L68">line
                                            68</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>增加修订计数器并派发一个 'change' 事件。</p>
                                </div>











                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="clear">
                                    </div>
                                    <h4 class="name">
                                        clear<span class="signature">(<span class="optional">fast</span>)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js">source/Cluster.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js#L151">line
                                            151</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>要从源中移除所有要素，</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>fast</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">

                                                <p>Skip dispatching of <code>removefeature</code> events.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="dispatchEvent">
                                    </div>
                                    <h4 class="name">
                                        dispatchEvent<span class="signature">(event)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_events_Target-Target.html#dispatchEvent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/events/Target.js">events/Target.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/events/Target.js#L85">line
                                            85</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>派发一个事件并调用所有监听此类型事件的监听器。事件参数可以是字符串或具有 <code>type</code>属性的对象。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>event</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_events_Event-BaseEvent.html">BaseEvent</a></span>
                                                |

                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">

                                                <p>Event object.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                如果任何人在事件对象上调用 preventDefault，或者如果任何监听器返回 false，则为<code>false</code>。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="forEachFeature">
                                    </div>
                                    <h4 class="name">
                                        forEachFeature<span class="signature">(callback)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{T | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#forEachFeature">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L600">line
                                            600</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>要遍历源中的所有要素，并对每个要素调用提供的回调函数，您可以使用forEachFeature
                                        方法。这个方法会遍历源中所有具有定义了几何图形的要素，并对每个要素执行提供的回调函数。如果回调函数返回任何“真值”（truthy
                                        value），则遍历将停止，并且该函数将返回相同的值。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>callback</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">

                                                <p>对于源中的每个要素都会调用该函数。返回真值（truthy value）以停止迭代。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                上一次调用回调函数时的返回值。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="forEachFeatureInExtent">
                                    </div>
                                    <h4 class="name">
                                        forEachFeatureInExtent<span class="signature">(extent, callback)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{T | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#forEachFeatureInExtent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L657">line
                                            657</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>遍历所有边界框与提供的范围（extent）相交的特征（请注意，特征的几何图形可能不与该范围相交），对每个特征调用回调函数。如果回调函数返回“真值”，则迭代将停止，并且该函数将返回相同的值。
                                    </p>
                                    <p>如果您对几何图形与范围相交的特征感兴趣，请调用 <a
                                            href="module-ol_source_Vector-VectorSource.html#forEachFeatureIntersectingExtent"><code>#forEachFeatureIntersectingExtent()</code></a>方法。
                                    </p>
                                    <p>当 <code>useSpatialIndex</code>设置为 false 时，此方法将遍历所有特征，这相当于调用<a
                                            href="module-ol_source_Vector-VectorSource.html#forEachFeature"><code>#forEachFeature()</code></a>。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>extent</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_extent.html#~Extent">Extent</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Extent.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>callback</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">

                                                <p>对每个边界框与给定范围相交的特征调用该函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                上一次调用回调函数时的返回值。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="forEachFeatureIntersectingExtent">
                                    </div>
                                    <h4 class="name">
                                        forEachFeatureIntersectingExtent<span class="signature">(extent,
                                            callback)</span><span class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{T | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#forEachFeatureIntersectingExtent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L681">line
                                            681</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>遍历所有几何图形与给定范围相交的特征，并对每个特征调用回调函数。如果回调函数返回“真值”，迭代将停止，并且该函数将返回相同的值。</p>
                                    <p>如果你只想测试边界框的交集，请调用 <a
                                            href="module-ol_source_Vector-VectorSource.html#forEachFeatureInExtent"><code>#forEachFeatureInExtent()</code></a>方法。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>extent</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_extent.html#~Extent">Extent</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Extent.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>callback</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">

                                                <p>对每个其几何图形与给定范围相交的特征调用该函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                上一次调用回调函数时的返回值。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="get">
                                    </div>
                                    <h4 class="name">
                                        get<span class="signature">(key)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{*}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#get">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L135">line
                                            135</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取一个值。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Value.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getAttributions">
                                    </div>
                                    <h4 class="name">
                                        getAttributions<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_source_Source.html#~Attribution">Attribution</a>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Source-Source.html#getAttributions">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js">source/Source.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js#L132">line
                                            132</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取数据源的归属函数。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Attribution function.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getAttributionsCollapsible">
                                    </div>
                                    <h4 class="name">
                                        getAttributionsCollapsible<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Source-Source.html#getAttributionsCollapsible">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js">source/Source.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js#L140">line
                                            140</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">














                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                归属信息是否可覆盖
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getClosestFeatureToCoordinate">
                                    </div>
                                    <h4 class="name">
                                        getClosestFeatureToCoordinate<span class="signature">(coordinate, <span
                                                class="optional">filter</span>)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{FeatureClass}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getClosestFeatureToCoordinate">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L794">line
                                            794</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取距离给定坐标最近的特征。</p>
                                    <p>当源配置为<code>useSpatialIndex</code> 设置为<code>false</code>，并且此源中的特征类型为<a
                                            href="module-ol_Feature-Feature.html"><code>Feature</code></a>时，此方法不可用。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>coordinate</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_coordinate.html#~Coordinate">Coordinate</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>坐标。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>filter</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>

                                                | undefined


                                            </td>



                                            <td class="description last">

                                                <p>特征过滤器函数过滤器函数将接收一个参数<a
                                                        href="module-ol_Feature-Feature.html"><code>feature</code></a>，并应返回一个布尔值。默认情况下，不执行任何过滤。
                                                </p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Closest feature.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getDistance">
                                    </div>
                                    <h4 class="name">
                                        getDistance<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js">source/Cluster.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js#L161">line
                                            161</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取集群之间的像素距离。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Distance.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getExtent">
                                    </div>
                                    <h4 class="name">
                                        getExtent<span class="signature">(<span
                                                class="optional">extent</span>)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_extent.html#~Extent">Extent</a>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getExtent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L850">line
                                            850</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取当前源中特征的范围。</p>
                                    <p>当源配置为 <code>useSpatialIndex</code> 设置为<code>false</code>时，此方法不可用。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>extent</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_extent.html#~Extent">Extent</a></span>

                                                | undefined


                                            </td>



                                            <td class="description last">

                                                <p>目标范围。如果已提供，将不会创建新的范围。相反，该范围的坐标将被覆盖。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Extent.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getFeatureById">
                                    </div>
                                    <h4 class="name">
                                        getFeatureById<span class="signature">(id)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{FeatureClass | Array&lt;<a
                                                href="module-ol_render_Feature-RenderFeature.html">RenderFeature</a>> |
                                            null}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getFeatureById">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L866">line
                                            866</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>通过特征的标识符（由 feature.getId() 返回的值）获取特征。当使用 <code>RenderFeature</code>s
                                        时，<code>getFeatureById()</code>可以返回一个 <code>RenderFeature</code>s 数组。这允许处理
                                        <code>GeometryCollection</code>几何图形，其中格式读取器为每个 <code>GeometryCollection</code>
                                        成员创建一个 <code>RenderFeature</code> 。请注意，索引将字符串和数字标识符视为相同。因此，
                                        <code>source.getFeatureById(2)</code> 将返回 id 为 <code>'2'</code> or
                                        <code>2</code>的特征。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>id</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">

                                                <p>Feature identifier.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The feature (or <code>null</code> if not found).
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getFeatures">
                                    </div>
                                    <h4 class="name">
                                        getFeatures<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array.&lt;FeatureClass>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getFeatures">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L720">line
                                            720</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取当前数据源上特征的随机顺序快照。返回的数组是一个副本，其中的特征是源中特征的引用。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Features.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getFeaturesAtCoordinate">
                                    </div>
                                    <h4 class="name">
                                        getFeaturesAtCoordinate<span class="signature">(coordinate)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array&lt;<a
                                                href="module-ol_Feature-Feature.html">Feature</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getFeaturesAtCoordinate">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L739">line
                                            739</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取所有其几何形状与提供的坐标相交的特征。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>coordinate</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_coordinate.html#~Coordinate">Coordinate</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Coordinate.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Features.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getFeaturesCollection">
                                    </div>
                                    <h4 class="name">
                                        getFeaturesCollection<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_Collection-Collection.html">Collection</a>&lt;FeatureClass>
                                            | null}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getFeaturesCollection">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L710">line
                                            710</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取与此源关联的特征集合。除非将源配置为<code>useSpatialIndex</code>设置为 <code>false</code>，或者将 <a
                                            href="module-ol_Collection-Collection.html"><code>集合(Collection)</code></a>作为<code>features</code>，否则将为<code>null</code>
                                    </p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The collection of features.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getFeaturesInExtent">
                                    </div>
                                    <h4 class="name">
                                        getFeaturesInExtent<span class="signature">(extent, <span
                                                class="optional">projection</span>)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array.&lt;FeatureClass>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getFeaturesInExtent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L761">line
                                            761</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取所有其边界框与提供的范围相交的特征。请注意，这将返回一个包含所有与给定范围相交的特征的随机顺序数组（因此可能包括其几何图形不与范围相交的特征）。</p>
                                    <p>当 <code>useSpatialIndex</code> 设置为 false时，此方法将返回所有特征。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>extent</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_extent.html#~Extent">Extent</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Extent.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>projection</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_proj_Projection-Projection.html">Projection</a></span>

                                                | undefined


                                            </td>



                                            <td class="description last">

                                                <p>包括那些<code>extent</code>超出<code>projection</code>的 x 轴边界并环绕世界的特征</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Features.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getFormat">
                                    </div>
                                    <h4 class="name">
                                        getFormat<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_format_Feature-FeatureFormat.html">FeatureFormat</a> |
                                            undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getFormat">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L888">line
                                            888</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取与此源关联的格式。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The feature format.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getKeys">
                                    </div>
                                    <h4 class="name">
                                        getKeys<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array.&lt;string>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#getKeys">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L148">line
                                            148</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">



                                <div class="description">
                                    <p>获取对象属性名称的列表。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                属性名称列表。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getMinDistance">
                                    </div>
                                    <h4 class="name">
                                        getMinDistance<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js">source/Cluster.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js#L211">line
                                            211</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>集群之间配置的最小距离。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The minimum distance in pixels.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getProjection">
                                    </div>
                                    <h4 class="name">
                                        getProjection<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_proj_Projection-Projection.html">Projection</a> |
                                            null}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Source-Source.html#getProjection">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js">source/Source.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js#L149">line
                                            149</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取源的投影。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Projection.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getProperties">
                                    </div>
                                    <h4 class="name">
                                        getProperties<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Object.&lt;string, *>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#getProperties">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L157">line
                                            157</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取包含所有属性名称和值的对象。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Object.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getRevision">
                                    </div>
                                    <h4 class="name">
                                        getRevision<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#getRevision">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L79">line
                                            79</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此对象的版本号。每次对象被修改时，其版本号将递增。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Revision.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getSource">
                                    </div>
                                    <h4 class="name">
                                        getSource<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_source_Vector-VectorSource.html">VectorSource</a> |
                                            null}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js">source/Cluster.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js#L170">line
                                            170</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取包装源的引用。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Source.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getState">
                                    </div>
                                    <h4 class="name">
                                        getState<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_source_Source.html#~State">State</a>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Source-Source.html#getState">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js">source/Source.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js#L173">line
                                            173</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取源的状态，参见可能的枚举 <a href="module-ol_source_Source.html#~State"><code>状态</code></a>。
                                    </p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                State.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getUrl">
                                    </div>
                                    <h4 class="name">
                                        getUrl<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{string | <a
                                                href="module-ol_featureloader.html#~FeatureUrlFunction">FeatureUrlFunction</a>
                                            | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#getUrl">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L905">line
                                            905</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取与此源关联的URL。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The url.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="hasFeature">
                                    </div>
                                    <h4 class="name">
                                        hasFeature<span class="signature">(feature)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean}</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#hasFeature">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L960">line
                                            960</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>如果特征包含在源中，则返回 true。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>feature</code></td>



                                            <td class="type">


                                                <span class="param-type">FeatureClass</span>




                                            </td>



                                            <td class="description last">

                                                <p>Feature.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Has feature.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="on">
                                    </div>
                                    <h4 class="name">
                                        on<span class="signature">(type, listener)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a> | Array&lt;<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#on">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L152">line
                                            152</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>监听特定类型的事件。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                监听器的唯一键。如果将事件类型的数组作为第一个参数调用，返回将是键的数组。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="once">
                                    </div>
                                    <h4 class="name">
                                        once<span class="signature">(type, listener)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a> | Array&lt;<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#once">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L164">line
                                            164</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>仅监听特定类型的事件一次。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                监听器的唯一键。如果将事件类型的数组作为第一个参数调用，返回将是键的数组。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="removeFeature">
                                    </div>
                                    <h4 class="name">
                                        removeFeature<span class="signature">(feature)</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#removeFeature">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L1069">line
                                            1069</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>从源中移除单个特征。如果您想要一次性移除所有特征，请使用<a
                                            href="module-ol_source_Vector-VectorSource.html#clear"><code>#clear()</code></a>方法。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>feature</code></td>



                                            <td class="type">


                                                <span class="param-type">FeatureClass</span>




                                            </td>



                                            <td class="description last">

                                                <p>Feature to remove.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="removeLoadedExtent">
                                    </div>
                                    <h4 class="name">
                                        removeLoadedExtent<span class="signature">(extent)</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#removeLoadedExtent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L1048">line
                                            1048</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>从已加载的范围列表中移除一个范围。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>extent</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_extent.html#~Extent">Extent</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Extent.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="set">
                                    </div>
                                    <h4 class="name">
                                        set<span class="signature">(key, value, <span
                                                class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#set">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L215">line
                                            215</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置值。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>value</code></td>



                                            <td class="type">


                                                <span class="param-type">*</span>




                                            </td>



                                            <td class="description last">

                                                <p>Value.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>是否在不触发事件的情况下进行更新。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setAttributions">
                                    </div>
                                    <h4 class="name">
                                        setAttributions<span class="signature">(attributions)</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Source-Source.html#setAttributions">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js">source/Source.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Source.js#L206">line
                                            206</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>设置源的归属信息。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>attributions</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_source_Source.html#~AttributionLike">AttributionLike</a></span>
                                                |

                                                <span class="param-type">undefined</span>




                                            </td>



                                            <td class="description last">
                                                <p>归属信息。可以作为<code>string</code>,
                                                    <code>Array&lt;string&gt;</code>, <a
                                                        href="module-ol_source_Source.html#~Attribution"><code>Attribution</code></a>,
                                                    or <code>undefined</code>传递。
                                                </p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="setDistance">
                                    </div>
                                    <h4 class="name">
                                        setDistance<span class="signature">(distance)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js">source/Cluster.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js#L192">line
                                            192</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置聚群组的距离。在这个距离范围内 features 会聚合在一起。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>distance</code></td>



                                            <td class="type">


                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">

                                                <p>以像素为单位的距离。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setLoader">
                                    </div>
                                    <h4 class="name">
                                        setLoader<span class="signature">(loader)</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#setLoader">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L1145">line
                                            1145</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置数据源的新加载器。下一个渲染周期将使用新的加载器。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>loader</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_featureloader.html#~FeatureLoader">FeatureLoader</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>The loader to set.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="setMinDistance">
                                    </div>
                                    <h4 class="name">
                                        setMinDistance<span class="signature">(minDistance)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js">source/Cluster.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js#L202">line
                                            202</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置聚合对象之间的最小距离，也就是聚合之后的圆圈的距离。不能超过默认的距离。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>minDistance</code></td>



                                            <td class="type">


                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">

                                                <p>The minimum distance in pixels.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setProperties">
                                    </div>
                                    <h4 class="name">
                                        setProperties<span class="signature">(values, <span
                                                class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#setProperties">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L235">line
                                            235</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置一个键值对的集合。请注意，这将更改任何现有属性并添加新属性（不会删除任何现有属性）。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>values</code></td>



                                            <td class="type">


                                                <span class="param-type">Object.&lt;string, *></span>




                                            </td>



                                            <td class="description last">

                                                <p>Values.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>是否在不触发事件的情况下进行更新。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="setSource">
                                    </div>
                                    <h4 class="name">
                                        setSource<span class="signature">(source)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js">source/Cluster.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Cluster.js#L220">line
                                            220</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>替换原有数据源</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>source</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_source_Vector-VectorSource.html">VectorSource</a></span>
                                                |

                                                <span class="param-type">null</span>




                                            </td>



                                            <td class="description last">

                                                <p>此实例的新数据源。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setUrl">
                                    </div>
                                    <h4 class="name">
                                        setUrl<span class="signature">(url)</span>

                                        <span class="inherited"><a
                                                href="module-ol_source_Vector-VectorSource.html#setUrl">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js">source/Vector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/source/Vector.js#L1154">line
                                            1154</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>将源指向一个新的url。下一个渲染周期将使用新的url。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>url</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type"><a
                                                        href="module-ol_featureloader.html#~FeatureUrlFunction">FeatureUrlFunction</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Url.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="un">
                                    </div>
                                    <h4 class="name">
                                        un<span class="signature">(type, listener)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#un">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L173">line
                                            173</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>取消监听特定类型的事件。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="unset">
                                    </div>
                                    <h4 class="name">
                                        unset<span class="signature">(key, <span class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#unset">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L259">line
                                            259</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>取消设置属性。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>在不触发事件的情况下取消设置属性。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>

                        </dl>





                    </article>

                </section>




            </div>
        </div>
    </div>
    <script>prettyPrint();</script>
    <script src="scripts/linenumber.js"></script>
    <script src="scripts/main.js"></script>
</body>

</html>